package com.telecom.controller.access;

import com.dahuatech.icc.exception.ClientException;
import com.telecom.common.AjaxResult;
import com.telecom.domain.dto.AcPgUserConfDTO;
import com.telecom.service.AcPgUserConfService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/access")
public class AccessEmpowerController {

    @Resource
    private AcPgUserConfService acPgUserConfService;

    @PostMapping("doorAuthority")
    public AjaxResult doorAuthority(@RequestBody AcPgUserConfDTO acPgUserConfDTO) throws ClientException {
        acPgUserConfService.doorAuthority(acPgUserConfDTO);
        return AjaxResult.success("新增成功");
    }


}
